package com.industrial.auth.controller.response;

import com.alibaba.fastjson2.annotation.JSONField;

/**
 * Ticket获取Token的响应类
 */
public class TokenFromTicketResp {

    @JSONField(name = "access_token")
    private String accessToken;
    @JSONField(name = "token_type")
    private String tokenType;
    @JSONField(name = "refresh_token")
    private String refreshToken;
    @JSONField(name = "expires_in")
    private int expiresIn;
    @JSONField(name = "scope")
    private String scope;
    @JSONField(name = "license")
    private String license;
    @JSONField(name = "active")
    private boolean active;

    @JSONField(name = "user_info")
    private UserInfo userInfo;
    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }
    public String getAccessToken() {
        return accessToken;
    }

    public void setTokenType(String tokenType) {
        this.tokenType = tokenType;
    }
    public String getTokenType() {
        return tokenType;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }
    public String getRefreshToken() {
        return refreshToken;
    }

    public void setExpiresIn(int expiresIn) {
        this.expiresIn = expiresIn;
    }
    public int getExpiresIn() {
        return expiresIn;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }
    public String getScope() {
        return scope;
    }

    public void setLicense(String license) {
        this.license = license;
    }
    public String getLicense() {
        return license;
    }

    public void setActive(boolean active) {
        this.active = active;
    }
    public boolean getActive() {
        return active;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }
}


